const initalState = [{ id: '1', text: 'ssssss' }, { id: '2', text: 'ssssss1' }]
const reducer = (state = initalState, action) => {
  switch (action.type) {
    case 'RRRR':
      const comments = [...state, action.comments]
      return comments
    default:
      return state
  }
}

export default reducer
